package eerbaar.collision.internal;

import eerbaar.collision.ICollisionCallback;
import eerbaar.collision.ICollisionService;
import eerbaar.elements.IElement;

public class CollisionService implements ICollisionService {

    @Override
    public void process(IElement e1, IElement e2, ICollisionCallback callback) {

        CollisionProcessor processor = new CollisionProcessor();
        processor.process(e1, e2, callback);
    }

    @Override
    public void processProximity(IElement pet, IElement e1, IElement e2,
            ICollisionCallback callback) {

        ProximityProcessor processor = new ProximityProcessor();
        processor.processProximity(pet, e1, e2, callback);
    }

}
